package cn.sciento.starter.social.sina.connection;

import org.springframework.social.oauth2.AccessGrant;

public class SinaAccessGrant extends AccessGrant {
  private static final long serialVersionUID = 6188192404582815582L;
  
  private String openId;
  
  public SinaAccessGrant(String accessToken, String openId) {
    super(accessToken);
    this.openId = openId;
  }
  
  public SinaAccessGrant(String accessToken, Long expiresIn, String openId) {
    super(accessToken, null, null, expiresIn);
    this.openId = openId;
  }
  
  public String getOpenId() {
    return this.openId;
  }
}
